<?php


namespace app\user\controller;


use app\index\controller\Base;
use app\user\model\DataType  as DataTypeModel;
class Datatype extends Base
{

    public function get(){
        $user = new DataTypeModel();
        $d=$this->request->param();
        return $user->selectModel($d);
    }
    public function update()
    {
        $data = $this->request->param();
        $res = new DataTypeModel();
        return $res->updateModel($data);
    }
    public function delete(){
        $data = $this->request->param();
        $res = new DataTypeModel();
        return $res->deleteModel($data);
    }
    public function save(){
        $res = new DataTypeModel();
        $data = $this->request->param();
        $res->saveModel($data);
    }
}